// BT4_Array.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Array.h"
#include<iostream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	Array<int> intArray;

	// fill array
	for(int i = 0; i < intArray.getSize(); i++)
		intArray[i] = intArray.getSize() - i;
	// print arry before sort
	cout << "Before sort:\n";
	for(int i = 0; i < intArray.getSize(); i++)
	{
		
		 cout << "intArray[" << i << "]:\t";
		cout << intArray[i] <<"\n";
	}

	//sort
	intArray.sort(ShellSort<int>::createSortObject());
	// print arry after sort
	cout << "\nAfter sort:\n";
	for(int i = 0; i < intArray.getSize(); i++)
	{
		 cout << "intArray[" << i << "]:\t";
		cout << intArray[i] <<"\n";
	}
	
	return 0;
}

